package cool.taomu.toolkit.jersey

import com.google.auto.service.AutoService
import com.google.inject.AbstractModule
import cool.taomu.toolkit.TaomuConfigure
import cool.taomu.toolkit.platform.inter.IPlatform
import org.glassfish.jersey.server.ResourceConfig

@AutoService(IPlatform)
class MockJerseryPlugin implements IPlatform {

	override note() {
		"Mock Jsersery模块"
	}

	override packages() {
	}

	override module(TaomuConfigure configure) {
		new AbstractModule() {
			override configure() {
				bind(ResourceConfig).to(GuiceResourceConfig)
				bind(JerseyInternalInvoker)
			}
		}
	}

	override start() {
	}

	override init() {
	}

}
